<?php

namespace app\common\model;

use think\Model;

class RemindCourse extends BaseModel
{
    public function teacherCourse()
    {
        return $this->hasOne(TeacherCourse::class, 'teacher_course_id', 'teacher_course_id');
    }

    public function courseOrder()
    {
        return $this->hasOne(CourseOrder::class, 'course_order_id', 'course_order_id');
    }

    public function teacher()
    {
        return $this->hasOne(Teacher::class, 'teacher_id', 'teacher_id')->field('teacher_id, nickname, headeravatar, phone, year');
    }
}
